package com.kevin.data.batch.configuration;

import org.springframework.batch.core.JobExecution;
import org.springframework.batch.core.JobExecutionListener;

/**
 * 任务监听器
 */
public class BizJobListener implements JobExecutionListener {

    @Override
    public void beforeJob(JobExecution jobExecution) {
        System.err.println("job start, id=" + jobExecution.getJobId());
    }

    @Override
    public void afterJob(JobExecution jobExecution) {
        System.err.println("job end, id=" + jobExecution.getJobId());
    }

}
